import org.apache.spark.sql.{SQLContext, SparkSession}
import org.apache.spark.{SparkConf, SparkContext}

object SqlTest {
  def main(args: Array[String]): Unit = {
//    val conf = new SparkConf().setAppName("test").setMaster("local[2]")
//    val sc = new SparkContext(conf)
//    val sqlContext = SparkSession.builder().appName("select_test").getOrCreate()
//    var par = sqlContext.read.parquet("hdfs://202.112.113.71:9000/test/p5")
//    par.createOrReplaceTempView("water1")
//    sqlContext.sql("select count(*) from water1").show()
    print("hello scala!")
    var ss = Array(1,2,3,4)
    print(ss.length)
    print(ss(1))



  }
}
